var mongoose=require('mongoose'),
    config=require('../config/config');
mongoose.connect("mongodb://"+config.dbhost+":"+config.dbport+"/"+config.dbname,function (err) {
    if (err)
        throw err;
    console.log('db connect ok');
});
module.exports=mongoose;